package com.ghck.server.service;
import java.util.List;

import com.ghck.server.model.Appointment;
import com.ghck.server.model.query.AppointmentQuery;
import com.ghck.server.model.response.DoctorAppointmentRes;

/**
 * 医生预约表  <br>
 * t_appointment <br>
 * v1.0 2016-05-01
 */
 public interface AppointmentService {
	
	/**
 	*根据ID删除 医生预约表
 	*/
 	public Integer deleteAppointmentById(Integer id);
 	
 	/**
 	*新增 医生预约表
 	*/
 	public Integer batchInsertAppointment(List<? extends Appointment> appointments);
 	
 	/**
 	*新增 医生预约表
 	*/
 	public Integer insertAppointment(Appointment domain);
 
 	
 	/**
 	*更新 医生预约表
 	*/
 	public Integer updateAppointment(Appointment domain);
 	
 	/**
 	*根据ID查询 医生预约表
 	*/
 	public Appointment findAppointmentById(Integer id);

	/**
 	*通过query 查询 医生预约表
 	*/
	public List<DoctorAppointmentRes> findAppointmentByQuery(AppointmentQuery query);	
	
	/**
 	*通过query count总条数
 	*/
 	public Integer countAppointmentByQuery(AppointmentQuery query);
 	
 	/**
 	* 通过ids查询
 	*/
 	public List<Appointment> findAppointmentByIds(List<Integer> ids);
 	
}	